<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AdminSite.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="YoProgramo.Core.Entities"%>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
  <script type="text/javascript">
    // to set WMD's options programatically, define a "wmd_options" object with whatever settings
    // you want to override.  Here are the defaults:
    wmd_options = {
      // format sent to the server.  Use "Markdown" to return the markdown source.
      output: "Markdown",

      // line wrapping length for lists, blockquotes, etc.
      //lineLength: 40,

      // toolbar buttons.  Undo and redo get appended automatically.
      buttons: "bold italic | link blockquote code image | ol ul heading hr",

      // option to automatically add WMD to the first textarea found.  See apiExample.html for usage.
      autostart: true
    };
  </script>
  <script src="/Scripts/wmd/wmd.js" type="text/javascript"></script> 


    <h2>Editar Comentario</h2>
    
    <% using(Html.BeginForm())
     {
         %>
         <% = Html.AntiForgeryToken() %>
         
         <p>
         <b>Fecha: </b><%= ((Comment)Model).CommentedAt.ToShortDateString() %> | <b>Por: </b><%= ((Comment)Model).ByUser.UserName %>  | <b>Ip: </b><%= ((Comment)Model).FromIPAddress %> 
         </p>
         <p>
         <b>Pregunta: </b><%= ((Comment)Model).ForStory.Title %> 
         </p>         
         <p><%=Html.TextArea("comment.TextBody", ((Comment)Model).TextBody, new { style = "width:520px; height:230px;" })%></p>
         <p><input type="submit" value="<%= Resources.Strings.BottomFormSubmit%>" /></p>
         <%
     }%>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContentPlaceHolder" runat="server">
</asp:Content>
